import request from '@u/request'
// 获取商品列表
const getItemLists = (params = {}) => {
  return request.get('/getltemLists', { params })
}
// 导出getItemLists
// 批量修改商品
const addItems = (params = {}) => {
  return request.post('/addItems', { params })
}
// 新增商品
const addItem = (params = {}) => {
  return request.post('/addItem', { params })
}
// 修改商品
const updataItem = (params = {}) => (
  request.put('/updataItem', params)
)
// 删除商品
const deleItem = (params = {}) => (
  request.delete('delCate', { params })
)
// 获取商品详情
const getItemDeletd = (params = {}) => {
  return request.get('/getItemDeletd', { params })
}
export {
  getItemLists,
  addItems,
  addItem,
  updataItem,
  deleItem,
  getItemDeletd
}
